/*
* Main.fx
 * Created on 04/03/2009
 */

package changecolor;

import changecolor.model.Board;
import changecolor.model.OptionPanel;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.scene.layout.HBox;

/**
 * @author José Corcuera
 */
var option = OptionPanel{

};
var board = Board {
    url: "{__DIR__}res/newbeetleFX2.fxz"
    optionpanel: option;
};


Stage {
    title: "Change Car's Color!"
    onClose: function() {
        java.lang.System.exit (0);
    }
    resizable:false;
    scene: Scene {
        width:board.width + option.width;
        height:board.height;
        content: [
            HBox{
                content: [
                    option
                    board
                ]

            }
        ]
    }
}
